<admintpl file="header" />
</head>
<body>
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#A" data-toggle="tab">{:L('CLIENTSIDE_ADMINMESSPUSH_PUSH')}</a></li>
        </ul>
        <form class="form-horizontal js-ajax-form" action="{:U('AdminMesspush/push_post')}" method="post">
            <div class="tabbable">
                <div class="tab-content">
                  <div class="tab-pane active" id="A">
                        <fieldset>
                            <!-- <div class="control-group">
                                <label class="control-label">{:L('NAME')}</label>
                                <div class="controls">
                                    <select name="taxonomy">
                                        <foreach name="taxonomys" item="vo"> <php>$selected=$data['taxonomy']==$key?"selected":""</php>
                                            <option value="{$key}"{$selected}>{$vo}</option>
                                        </foreach>
                                    </select>
                                </div>
                            </div> -->
                            <div class="control-group">
                                <label class="control-label">{:L('PUSH_TIME')}</label>
                                <div class="controls">
                                    <php>
                                        $status_yes=$post['pushtime']==1?"checked":"";
                                        $status_no=$data['pushtime']==2?"checked":"";
                                    </php>
                                    <input type="radio" name="post[pushtime]" value="{$post.pushtime}" {$status_yes}>延迟3s
                                    <input type="radio" name="post[pushtime]" value="{$post.pushtime}" {$status_no}>延迟5s
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">{:L('EXPIRE_TIME')}</label>
                                <div class="controls">
                                    <input type="text" name="post[expiretime]" value="{$post.expiretime}">(小时)
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">{:L('OFFLINE')}</label>
                                <div class="controls">
                                    <php>
                                        $status_yes=$post['storeoffline']==1?"checked":"";
                                        $status_no=$data['storeoffline']==2?"checked":"";
                                    </php>
                                    <input type="radio" name="post[storeoffline]" value="{$post.storeoffline}" {$status_yes}>是
                                    <input type="radio" name="post[pushtime]" value="{$post.storeoffline}" {$status_no}>否
                                </div>
                            </div>
                        </fieldset>
                  </div>

                </div>
            </div>
            <div class="form-actions">
                <button class="btn btn-primary js-ajax-submit" type="submit">{:L('SAVE')}</button>
                <a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
            </div>
        </form>
    </div>
    <script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
</body>
</html>